package owg.util;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

/**
 * This class exists to add a name to an input stream.
 * The name should be such that it can be used to recreate the stream(e.g. a file path).
 */
public class ProjectRelativeStream extends NamedInputStream {
    public ProjectRelativeStream(File projectRoot, String path) throws FileNotFoundException {
	super(new FileInputStream(new File(projectRoot, path)), path);
	assert input != null : "Project relative stream input can never be null";
    }
}
